<?php
final class AcessoBD{
    
    private function __construct(){}
    
    public static function abreConexao(){
        $conexao = new PDO('mysql:host=localhost;port=3306;dbname=gramatic', 'root', '');
        $conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        
        return $conexao;
    }
    
}
?>
